package com.cong.project.service;

import com.cong.project.model.entity.Collect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cong.project.model.request.TokenUserRequest;

/**
* @author 86188
* @description 针对表【collect(收藏表)】的数据库操作Service
* @createDate 2022-11-01 14:22:44
*/
public interface CollectService extends IService<Collect> {
    /**
     * 收藏
     *
     * @param tokenUserRequest 令牌用户请求
     * @param postId           post id
     * @param type             类型
     * @return {@link Integer}
     */
    Integer collectUp(TokenUserRequest tokenUserRequest, Long postId, Integer type);
}
